module Piston
  module Core
    class PluginLoader
      def initialize(file)
        @file = file
      end

      def load_plugin_module
        path = File.expand_path(File.dirname(__FILE__))
        file = File.join path, 'plugin_module.rb'
        load file
      end

      def load_plugin
        load @file
      end
    end
  end
end